<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>jquery.knob.js插件的使用</title>
    </head>
    <body>
        <input type="text" value="75" class="knob">
        <script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
        <script src="js/jquery.knob.min.js"></script>
        <script>
            $(function() {
                $(".knob").knob({
                    max: 940,
                    min: 500,
                    thickness: .3,
                    fgColor: '#2B99E6',
                    bgColor: '#303030',
                    // 'release':function(e){
                    //     $('#img').animate({width:e});
                    // }
                });
            });
        </script>
    </body>
</html>